package com.ruoyi.project.data.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class WorksAllRecords extends BaseEntity {
    private int dId;
    private String dName;
    private double regAllMoney;
    private int regNum;

    public WorksAllRecords() {
    }

    public WorksAllRecords(int dId, String dName, double regAllMoney, int regNum) {
        this.dId = dId;
        this.dName = dName;
        this.regAllMoney = regAllMoney;
        this.regNum = regNum;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public double getRegAllMoney() {
        return regAllMoney;
    }

    public void setRegAllMoney(double regAllMoney) {
        this.regAllMoney = regAllMoney;
    }

    public int getRegNum() {
        return regNum;
    }

    public void setRegNum(int regNum) {
        this.regNum = regNum;
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (!(o instanceof WorksAllRecords)) return false;
        WorksAllRecords that = (WorksAllRecords) o;
        return dId == that.dId &&
                Double.compare(that.regAllMoney, regAllMoney) == 0 &&
                regNum == that.regNum &&
                Objects.equals(dName, that.dName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dId, dName, regAllMoney, regNum);
    }

    @Override
    public String toString() {
        return "WorksAllRecords{" +
                "dId=" + dId +
                ", dName='" + dName + '\'' +
                ", regAllMoney=" + regAllMoney +
                ", regNum=" + regNum +
                '}';
    }
}
